Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Specular Control

Labels

ASCII
SpecularControl
Binary
cspc ( = 0x63737063 )

Data Format

Float32             specularControl
specularControl
The exponent to be used in computing the intensity of the specular color of one or more objects. The value of this field must be greater than or equal to 0, and is normally an integer greater than or equal to 1.

Data Size

4

Description

A specular control object specifies the specular reflection exponent used in the Phong and related illumination models.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute sets. A specular control object always has a parent object.

Child Objects

None.

Example

Container (
    AttributeSet ( )
    DiffuseColor ( 1 0 0 )                      # red
    SpecularColor ( 1 1 1 )                     # white highlights
    SpecularControl ( 60 )                      # sharp fall-off
    )
Ellipsoid( )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |